//
//  HomeVideoCollectionViewCell.m
//  Rail
//
//  Created by hychen on 2018/7/15.
//  Copyright © 2018年 Hychen. All rights reserved.
//

#import "HomeVideoCollectionViewCell.h"

@interface HomeVideoCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;

@end
@implementation HomeVideoCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.imageView.layer.cornerRadius = 5.f;
    self.imageView.layer.masksToBounds = YES;
}

- (void)setModel:(HomeVideoHistoryModel *)model {
    _model = model;
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:model.snapshot_url] placeholderImage:[UIImage imageNamed:@"home_list_default_img"]];
    self.titleLabel.text = model.device_name;
    self.contentLabel.text = model.area_name;
}

@end
